package com.mfengbao.yundaolan.common.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: Oyp
 * @date: 2020/9/23 on 9:43 上午
 * @description: ⠀
 */
@Getter
@AllArgsConstructor
public enum GlobalEnum {
  /** eg */
  eg(false);
  private final Boolean code;

  @Getter
  @AllArgsConstructor
  public enum AuthStatusEnum {
    /** 状态枚举 */
    PENDING_SUBMIT("待提交"),
    PENDING_AUTH("待审核"),
    AUTH_SUCCESS("已认证"),
    AUTH_FAIL("认证失败"),
    ;
    private final String desc;

    @Getter
    @AllArgsConstructor
    public enum FileUploadAuthStatusEnum {
      /** 状态枚举 */
      PENDING_SUBMIT("待提交"),
      PENDING_AUTH("待审核"),
      AUTH_SUCCESS("已认证"),
      AUTH_FAIL("认证失败"),
      ;
      private final String desc;
    }
  }

  @Getter
  @AllArgsConstructor
  public enum GenderEnum {
    /** 性别枚举 */
    UNKNOWN(0, "保密"),
    BOY(1, "男"),
    GIRL(2, "女");
    private final Integer code;
    private final String desc;
  }

  @Getter
  @AllArgsConstructor
  public enum LoginTypeEnum {
    /** 状态枚举 */
    WX_LOGIN("微信登录"),
    VERIFY_CODE_LOGIN("验证码登陆"),
    PWD_LOGIN("密码登录"),
    REG("注册"),
    ;
    private final String desc;
  }

  @Getter
  @AllArgsConstructor
  public enum UserSocialTypeEnum {
    /** 状态枚举 */
    WX("微信"),
    QQ("QQ"),
    ;
    private final String desc;
  }
}
